//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.emin.platform.productCenter.entity;

import com.emin.base.domain.BaseEntity;
import com.emin.base.domain.UndeleteableEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(
        schema = "cjk",
        name = "person"
)
public class Person extends BaseEntity implements UndeleteableEntity {
    private static final long serialVersionUID = 6170352433244049733L;
    public static final String PROP_MOBILE_PHONE = "mobilephone";
    public static final String PROP_PASSWORD = "password";
    public static final int ACCESS_PERSON = 0;
    public static final int ACCESS_DEALERC = 1;
    public static final int ACCESS_ADMIN = 2;
    public static final int ACCESS_WEIXIN = 3;
    public static final int ACCESS_ROOT = 4;
    public static final int ACTIVESTATUS_DISACTIVE = -1;
    public static final int ACTIVESTATUS_ACTIVE = 1;
    public static final Long RES_TYPE_CREATER_ID = 1L;
    private String mobilephone;
    private String password;
    private int status;
    private Long createTime;
    private Long lastModifyTime;

    public Person() {
    }

    @Id
    @SequenceGenerator(
            name = "person_id_seq",
            sequenceName = "platform.person_id_seq",
            allocationSize = 1
    )
    @GeneratedValue(
            strategy = GenerationType.SEQUENCE,
            generator = "person_id_seq"
    )
    public Long getId() {
        return super.getId();
    }

    @Column(
            name = "mobilephone"
    )
    public String getMobilephone() {
        return this.mobilephone;
    }

    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }

    @Column(
            name = "password"
    )
    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Column(
            name = "status"
    )
    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(
            name = "createtime"
    )
    public Long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Column(
            name = "lastmodifytime"
    )
    public Long getLastModifyTime() {
        return this.lastModifyTime;
    }

    public void setLastModifyTime(Long lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
}
